<#assign module="member"/>

<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/form.css">
</@override>
<@override name="body">

	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					客户申请审核
			    </div>
			    <div class="panel-body">
    				<form id="submit_form" action="${ctx}/memberapply/audit" class="form-horizontal" method="post">
		                <input type="hidden" name="id" value="${memberapply.id}">
		                <input type="hidden" name="type" value="${memberapply.type}">
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">申请类型：</label>
		                    <div class="col-sm-6">
		                    	<p class="form-control-static">
		                    		<#if memberapply.type==1>
										企业
									<#elseif memberapply.type==0>
										个人
									</#if>
		                    	</p>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>等级：</label>
		                    <div class="col-sm-3">
		                    	<select class="form-control" id="gradeId" name="gradeId" required />
									<option value="">--无--</option>
									<#if grades??>
										<#list grades as grade>
											<option value="${grade.id}">${grade.name?if_exists}</option>
										</#list>
									</#if>
								</select>
		                    </div>
		                </div>
		                
		                <#if memberapply.type==1>
			                <div class="form-group">
			                    <label class="col-sm-3 control-label"><em>*</em>公司名称：</label>
			                    <div class="col-sm-3">
			                    	<input class="form-control" id="agencyName" name="agencyName" type="text" value="${memberapply.agencyName?if_exists}" required/>
			                    </div>
			                </div>
		                </#if>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>姓名：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="name" name="name" type="text" value="${memberapply.name?if_exists}" required/>
		                    </div>
		                </div>
		               
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>电话：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="phone" name="phone" type="text" value="${memberapply.phone?if_exists}" required/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label"><em>*</em>邮箱：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control" id="email" name="email" type="text" value="${memberapply.email?if_exists}" required/>
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">备注：</label>
		                    <div class="col-sm-3">
		                    	<textarea class="form-control" cols="20" id="memo" name="memo" rows="2">${memberapply.memo?if_exists}</textarea>
		                	</div>
		                </div>
		                
		                <div class="form-group" style="margin-left:10px;">
			                <label class="col-sm-3 control-label"></label>
			                <input id="submit_button" type="submit" class="btn btn-primary" value="审核通过">
			                <input type="button" class="btn btn-default" onclick="window.location.href = '${ctx}/memberapply/list';" value="返回">
			            </div>
			            
					</form>
        		</div>
			</div>
		</div>
	</div>

</@override>
<@override name="footer">
<script src="${ctx}/assets/js/memberapply.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		
	});
</script>
</@override>
<@extends name="../layout.ftl"/>